{extend name="common/userbase"} 
{block name="slide"} 
<title>用户中心</title>
{/block}
{block name="content"}
<!--用户中心-->
<div class="user_style clearfix" id="user">
    <div class="user_title"><em></em>用户中心</div>
      <div class="clearfix user" >
          <div class="user_left">
              <div class="user_info">
               <div class="Head_portrait"><img src="__STATICS__/images/people.png"  width="80px" height="80px"/><!--头像区域--></div>
               <div class="user_name">{:session('nickname')}<a href="#">[个人资料]</a></div>
              </div>
              <ul class="Section">
               <li><a href="{:url('user/center')}"><em></em><span>我的特色馆</span></a></li>
               <li><a href="{:url('user/info')}"><em></em><span>完善个人信息</span></a></li>
               <li><a href="{:url('user/password')}"><em></em><span>修改密码</span></a></li>
               <li><a href="{:url('user/orders')}"><em></em><span>我的订单</span></a></li>
               <li><a href="{:url('user/message')}"><em></em><span>我的评论</span></a></li>
               <li><a href="{:url('user/integral')}"><em></em><span>我的积分</span></a></li>
               <li><a href="{:url('user/collect')}"><em></em><span>我的收藏</span></a></li>
               <li><a href="{:url('user/address')}"><em></em><span>收货地址管理</span></a></li>
              </ul>
            </div>
        <div class=" right_style r_user_style">
          <div class="user_Borders">
           <div class="title_name">
            <span class="name">个人信息设置</span>
           </div>
           <div class="about_user_info">
           <form id="form1" name="form1" method="post" action="{:url('changeUserInfo')}">   
           <div class="user_layout">
             <ul >
              <li><label class="user_title_name">用户头像：</label></li>
              <li><label class="user_title_name">用户昵称：</label><input name="nickname" id="nickname" type="text"  class="add_text" value="{$nickname}"/><i class="dot-1"></i></li>
              <li><label class="user_title_name">用户性别：</label>               
                    <label class="sex"> <input type="radio" name="RadioGroup1" value="1" id="RadioGroup1_0" /><span>男</span></label>
                    <label class="sex"><input type="radio" name="RadioGroup1" value="2" id="RadioGroup1_1" /><span>女</span></label> 
                    <i class="dot-2">*</i>         
              </li>
              <li><label class="user_title_name">手&nbsp;机&nbsp;号：</label><input name="phone" id="phone" type="text"  class="add_text" value="{$phone}"/><i class="dot-3"></i></li>
              <li><label class="user_title_name">邮箱地址：</label><input name="email" id="email" type="text"  class="add_text" value="{$email}"/><i class="dot-4"></i></li>         
             </ul>
             <div class="operating_btn"><input name="name" type="submit" value="提交"  class="submit—btn"/></div>
             </div>
              </form>
           </div>
          </div>
        </div>
      </div>
    </div>
{/block}
{block name="footer_js"}
<script>
  $('#nickname').keyup(function(){
    if ($('#nickname').val()=="") {
      $('.dot-1').html("*")
    }else {
      $('.dot-1').html("")
    }
  })
  $('input[name="RadioGroup1"]').keyup(function(){
    if ($('input[name="RadioGroup1"]').checked()==false) {
      $('.dot-2').html("*")
    }else {
      $('.dot-2').html("")
    }
  })
  $('#phone').keyup(function(){
    if ($('#phone').val()=="") {
      $('.dot-3').html("*")
    }else {
      $('.dot-3').html("")
    }
  })
  $('#email').keyup(function(){
    if ($('#email').val()=="") {
      $('.dot-4').html("*")
    }else {
      $('.dot-4').html("")
    }
  })
</script>

{/block}
